#include "..\ThunkC\ThunkC_\System.cu"

__device__ char *_heap;
__device__ void *__gcAlloc(int size)
{
	void *block = _heap;
	_heap += size;
	return block;
} 

__forceinline __device__ void *__xtypeBinder(void *t, System_Type *type)
{
	//((System_Object *)t)->__type = type;
	//type->__ctor(null,t);
	return(t);
}

extern "C" __global__ void Frame(int *array, int value)
{
	System_Object *t = (System_Object*)__xtypeBinder(gcalloc(System_Object),typeof(System_Object));
	//System_Object *t = new(,System_Object);
	//vcall(System_Object,t,ToString);
	//int index = blockIdx.x * blockDim.x + threadIdx.x;
	//array[index] = array[index] + value;
}

